package com.sls.game.dao.eightooj.impl;

import org.springframework.stereotype.Repository;

import com.sls.game.dao.eightooj.EightZeroJRegionDAO;
import com.sls.game.dao.impl.SuperDAO;
import com.sls.game.pojo.eightooj.EightZeroJRegion;

@Repository("eightZeroJRegionDAO")
public class EightZeroJRegionDAOImpl extends SuperDAO<EightZeroJRegion>
		implements EightZeroJRegionDAO {

	@Override
	public void insert(EightZeroJRegion eightZeroJRegion) {
		this.getSqlSession().insert(
				"mybatis.xml.EightZeroJRegionMapper.insert",
				eightZeroJRegion);

	}

	@Override
	public void update(EightZeroJRegion eightZeroJRegion) {
		this.getSqlSession().update(
				"mybatis.xml.EightZeroJRegionMapper.update",
				eightZeroJRegion);

	}

	@Override
	public EightZeroJRegion queryByCCAndRI(EightZeroJRegion eightZeroJRegion) {
		return this
				.getSqlSession()
				.selectOne(
						"mybatis.xml.EightZeroJRegionMapper.queryByCCAndRI",
						eightZeroJRegion);
	}

}
